import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 全部引入
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import Axios from 'axios'
// 引入vuex
import store from './store'
// 全局导入头部组件
import indexHeader from '@/components/indexHeader'
//  导入全局文件上传组件fileUpload
import fileUpload from '@/components/fileUpload'
// 导入多图片上传组件
import imgsUpload from '@/components/imgsUpload'
import imgsUpload1 from '@/components/imgsUpload1'
// 图片轮播组件
import picturesLunBo from '@/components/picturesLunBo.vue'
// 按钮式文件上传组件
import buttonFileUpload from '@/components/buttonFileUpload'
// 图片的放大缩小操作组件
import ForPicture from '@/components/ForPicture'
import picturesLunBoPlus from '@/components/picturesLunBoPlus'
// 展示单语录入的原文文件内容
import SingleFileArea from '@/components/SingleFileArea'
// 展示对照录入的两文件内容
import ComparisonFileArea from '@/components/ComparisonFileArea'
// 展示三语对照录入的三个文件内容
import ThreeDZFileArea from '@/components/ThreeDZFileArea'
// 解决跨域问题
Axios.defaults.baseURL = '/api'
Axios.defaults.headers.post['Content-Type'] = 'application/json'

Vue.component('ThreeDZFileArea', ThreeDZFileArea)
Vue.component('ComparisonFileArea', ComparisonFileArea)
Vue.component('SingleFileArea', SingleFileArea)
Vue.component('picturesLunBoPlus', picturesLunBoPlus)
Vue.component('ForPicture', ForPicture)
Vue.component('buttonFileUpload', buttonFileUpload)
Vue.component('indexHeader', indexHeader)
Vue.component('fileUpload', fileUpload)
Vue.component('imgsUpload', imgsUpload)
Vue.component('imgsUpload1', imgsUpload1)
Vue.component('picturesLunBo', picturesLunBo)
Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
